import App from './App'
if (process.env.NODE_ENV !== 'production') {
  import('vconsole').then(({ default: VConsole }) => {
    new VConsole()
    console.log('vConsole initialized')
  }).catch(err => {
    console.error('vConsole loading failed!', err)
  })
}

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import './static/font/font_5018820_cozz0kdouyo/iconfont.css'
import VConsole from 'vconsole'
const vConsole = new VConsole()

Vue.config.productionTip = false

Vue.config.ignoredElements.push('wx-open-launch-weapp')
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif